
<!-- ##################### Main Content ######################### -->   
  <div id="main">
      
    <h1>Search Results for: <span class="color1"><?php echo $user_options['user_input'];	?></span></h1>
  
    <!-- Display search options   -->
  	                                   <?php //echo $this->table->generate($options); ?>  	
    <div class="main2">
      Search By: <span class="color1"><?php echo $user_options['search_by'];	?></span> &nbsp 
      for: <span class="color1"><?php echo $user_options['user_input'];	?></span>  &nbsp    
      Total Records Found: <span class="color1"><?php echo $user_options['total_found'];	?></span>     
    </div>
    
    <div id="table1">
    <div id="pagination">	
    	<!-- generate table containing results from database -->
      <?php 
          if($field_name == 'author_name')
          {
               echo $this->table->set_heading('Author Name');     
          }
          elseif($field_name == 'subject_name')
          {
              echo $this->table->set_heading('Subject Name');      
          }
          elseif($field_name == 'title')
          {
              echo $this->table->set_heading('Call Number', 'Date', 'Title');     
          }
      ?>
  		<?php echo $this->table->generate($result); ?>
  		
  		
      <?php echo $this->pagination->create_links(); ?>  
    </div>
    </div>
		
  </div><!--### End Main Content ###-->
  

